package mapsObjects.movable.tank;
import mapsObjects.movable.AMovableObject;

public abstract class ATank extends AMovableObject{
	private int _defense = 1;
	private int _bulletsCount = 0;
	private int _maxBullets = 0;
	
	public ATank(int _x, int _y, int _width, int _height)
	{
		super(_x, _y, _width, _height);
	}
	
	public void setDefense(int defense)
	{
		_defense = defense;
	}
	
	public int getDefense()
	{
		return _defense;
	}
	
	public void increaseBulletsCount()
	{
		_bulletsCount++;
	}
	
	public void decreaseBulletsCount()
	{
		_bulletsCount--;
	}
	
	public int getBulletsCount()
	{
		return _bulletsCount;
	}
	
	public int getMaxBullets()
	{
		return _maxBullets;
	}
	
	public void setMaxBullets(int amount)
	{
		_maxBullets = amount;
	}
}